package com.xiaoqiang.commons.base.status;

import lombok.Getter;

/**
 * @author 小强
 * @since 2018/12/25 22:42
 */
@Getter
public enum BaseRestRequestStatusEnums implements Status {

    SUCCESS(1, "请求成功！"),
    ERROR(-1, "服务繁忙！"),
    PERMISSION_DENIED(40003, "权限不足！"),
    SERVICE_NOT_EXIST(40004, "服务不存在！");

    int code;
    String description;

    BaseRestRequestStatusEnums(int code, String description) {
        this.code = code;
        this.description = description;
    }
}
